package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.StrategyDetail;
import cn.wolfcode.luowowo.article.query.StrategyDetailQuery;
import cn.wolfcode.luowowo.article.vo.StatisVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyDetail record);

    StrategyDetail selectByPrimaryKey(Long id);

    List<StrategyDetail> selectAll();

    int updateByPrimaryKey(StrategyDetail record);

    List<StrategyDetail> selectForList(StrategyDetailQuery qo);

    List<StrategyDetail> selectByStrategyCatalogId(Long id);


    void deleteDetail_Tag_RelationByDetailId(Long id);

    void insertDetail_Tag_Relation(@Param("strategyDetailId") Long strategyDetailId, @Param("tagId") Long tagId);

    List<StrategyDetail> selectStrategyTop3ByDestId(Long id);

    void updateStatisVO(StatisVO pvo);
}